//
//  PGButtonCell.m
//  youqu
//
//  Created by 彭鹏 on 16/10/2.
//  Copyright © 2016年 pengpeng. All rights reserved.
//

#import "PGButtonCell.h"

@implementation PGButtonCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    self.titleLabel.font = [UIFont systemFontOfSize:15.0];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    UIImageView *imageView = self.imageView;
    imageView.pg_width = self.pg_width *0.6;
    imageView.pg_height = imageView.pg_width;
    imageView.pg_y = self.pg_width *0.1;
    imageView.pg_centerX = self.pg_width*0.5;
    
    
    UILabel *titleLabel = self.titleLabel;
    titleLabel.pg_width = self.pg_width;
    titleLabel.pg_x = 0;
    titleLabel.pg_y = CGRectGetMaxY(imageView.frame) + self.pg_width *0.05;
    titleLabel.pg_height = self.pg_width *0.1;
}

@end
